<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css">
		<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
		<script src="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
		<!-- 图标 -->
		<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css" />
		<title>好友列表</title>
		<style>
			li img {
				padding: 10x;
				border-radius: 50px;
			}
		</style>
		<script type="text/javascript">
			/* document.addEventListener('plusready', function(){
   			//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。")
   			
   		}); */
		</script>
		<!-- 控制头部和底部导航样式 -->
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
		<script>
			//若用户未登录，则需先登录
			// var logstatu = sessionStorage['LoginName'];
			// console.log("name is "+name);
			// console.log("statu is "+logstatu);
			// if (!logstatu) {
			// 	location.href = 'c_login.html';
			// 	console.log(logstatu);
			// }
		</script>
		<script>$.mobile.ajaxEnabled = false;</script>
		<script src="js/login/register.js"></script>
		<script>
		var user = getUser()
		</script>
	</head>
	<body>

		<div data-role="page">
			<div data-role="header" data-position="fixed" id="opcitybg">
				<a id="headop" href="index.html" data-role="button" data-icon="home" data-iconpos="notext"></a>
				<h1>好友列表</h1>
				<a id="headop" href="#" data-role="button" data-icon="plus" data-iconpos="notext"></a>
			</div>
			​
			<div data-role="main" class="ui-content">
				<ul data-role="listview" data-inset="true">
					<!-- 读取用户好友列表 -->
					<script type="text/javascript">
						for(let i=0;i<user.friendList.length;i++){
							'<li><a href= s_contact _seller.html?id="'+user.friendList[i]+'">'+
							'<img src=".'+getUser(user.friendList[i]).headUrl+'" data-icon="user" class="ui-li-icon">'+
							getUser(user.friendList[i]).name+
							'</a></li>'
						}
					</script>
					
					<li><a href="s_contact _seller.html"><img src="./img/head/head1.jpg" data-icon="user" class="ui-li-icon">小明</a></li>
					<li><a href="#"><img src="./img/head/head2.jpg" data-icon="user" class="ui-li-icon">笨笨熊</a></li>
					<li><a href="#"><img src="./img/head/head3.jpg" data-icon="user" class="ui-li-icon">青峰</a>
					</li>

				</ul>

			</div>



			<div data-role="footer" data-position="fixed" id="footerbg">
				<div data-role="navbar">
					<ul>
						<li><a id="menua" href="c_personal.html" data-icon="user"></a></li>
						<li><a id="menua" href="c_message.html" data-icon="comment"></a></li>
					</ul>
				</div>

			</div>
		</div>

	</body>
</html>
